package cn.tedu.egmybatis4.pojo.vo;

import cn.tedu.egmybatis4.pojo.entity.UserOrder;

import java.util.List;

public class OrderListVO {
    /**
     * 3.使用resultMap查询指定客户成交的订单信息，
     *   结果放到：OrderListVO 中，需要显示：
     *   顾客id、顾客姓名、订单集合 List<UserOrders>
     */
    private String cusId;
    private String cusName;
    private List<UserOrder> userOrders;

    public OrderListVO() {
    }

    public String getCusId() {
        return cusId;
    }

    public void setCusId(String cusId) {
        this.cusId = cusId;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public List<UserOrder> getUserOrders() {
        return userOrders;
    }

    public void setUserOrders(List<UserOrder> userOrders) {
        this.userOrders = userOrders;
    }

    @Override
    public String toString() {
        return "OrderListVO{" +
                "cusId='" + cusId + '\'' +
                ", cusName='" + cusName + '\'' +
                ", userOrders=" + userOrders +
                '}';
    }
}
